<%@ taglib uri="/WEB-INF/tlds/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/tlds/c.tld" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<s:form cssClass="hidden" method="post" id="effectueDemandeForm">

	<fieldset id="paramfixe" class="fieldsetEffectuerDemande">
		<legend>
			<s:text name="EffectuerDemande.Informations"></s:text>
		</legend>

		<i><s:text name="EffectuerDemande.ParametreObligatoireItalic"></s:text></i>
		<div class="clearfix"></div>

		<div class="form-horizontal cssDivForm pull-left">
			<div id="formTypeDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="typeDemande"><s:text
						name="EffectuerDemande.TypeDemande"></s:text></label>
				<div id="form2TypeDemande" class="col-sm-10">
					<s:select id="typeDemande" list="#session.typesDemandes"
						listKey="identifiantTypeDemande" listValue="nomTypeDemande"
						cssClass="form-control combobox" emptyOption="true">
					</s:select>
				</div>
			</div>
		</div>

		<div class="form-horizontal cssDivForm pull-left">
			<div id="formCategorieDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="categorie"><s:text
						name="EffectuerDemande.CategorieDemande"></s:text></label>
				<div id="form2CategorieDemande" class="col-sm-10">
					<select id="categorie" class="form-control combobox"></select>
				</div>
			</div>
		</div>

		<div class="clearfix"></div>

		<div class="form-horizontal cssDivForm pull-left">
			<div id="formSousCategorieDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="souscategorie"><s:text
						name="EffectuerDemande.SousCategorieDemande"></s:text></label>
				<div id="form2SousCategorieDemande" class="col-sm-10">
					<select id="souscategorie" class="form-control combobox"></select>
				</div>
			</div>
		</div>

		<div class="form-horizontal cssDivForm pull-left">
			<div id="formNomDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="nom"><s:text
						name="EffectuerDemande.NomDemande"></s:text></label>
				<div id="form2NomDemande" class="col-sm-10">
					<select id="nom" name="nomDemande" class="form-control combobox"></select>
				</div>
			</div>
		</div>

		<div class="clearfix"></div>

		<div class="form-horizontal cssDivForm3 pull-left">
			<div id="formTitreDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="titre"><s:text
						name="EffectuerDemande.TitreDemande"></s:text></label>
				<div id="form2TitreDemande" class="col-sm-10">
					<s:textfield id="titre" name="titreDemande" class="form-control"
						maxlength="255"></s:textfield>
				</div>
			</div>

			<div id="formReferenceDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="reference"><s:text
						name="EffectuerDemande.ReferenceDemande"></s:text></label>
				<div id="form2ReferenceDemande" class="col-sm-10">
					<s:textfield id="reference" name="referenceDemande"
						class="form-control" maxlength="255"></s:textfield>
				</div>
			</div>

			<div id="formCommentaireDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="commentaire"><s:text
						name="EffectuerDemande.CommentaireDemande"></s:text></label>
				<div id="form2CommentaireDemande" class="col-sm-10">
					<s:textfield id="commentaire" name="commentaireDemande"
						class="form-control" maxlength="255"></s:textfield>
				</div>
			</div>
		</div>
		<div class="form-horizontal cssDivForm pull-left">
			<div id="formCheckListDemande" class="control-group">
				<label class="sr-only col-sm-2 control-label" for="checklist"><s:text
						name="EffectuerDemande.CheckList"></s:text></label>
				<div id="form2CheckListDemande" class="col-sm-10">
					<select id="checklist" class="form-control" disabled multiple></select>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	</fieldset>
	<fieldset id="fieldsetEffectuerDemande"
		class="hidden fieldsetEffectuerDemande">
		<legend>
			<s:text name="EffectuerDemande.Parametre"></s:text>
		</legend>
		<div id="paramDemande" class="form-horizontal cssDivForm2"></div>
	</fieldset>
	<input type="submit" class="validation btn btn-primary"
		value="<s:text name="EffectuerDemande.Envoyer"></s:text>" />
</s:form>

<!-- Partie du modal  -->

<div class="modal fade hide" id="mymodal" data-target=".bs-modal-sm">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:text name="EffectuerDemande.modal.titre"></s:text>
				</h4>
			</div>
			<div class="modal-body">
				<div id="modal_default" class="alert alert-info">
					<s:text name="EffectuerDemande.modal.label"></s:text>
				</div>
				<div id="modal_warning" class="alert hidden">
					<strong><s:text
							name="EffectuerDemande.modal.label.warning.strong"></s:text></strong>
					<s:text name="EffectuerDemande.modal.label.warning"></s:text>
				</div>
				<div id="modal_error" class="alert alert-error hidden">
					<strong><s:text
							name="EffectuerDemande.modal.label.error.strong"></s:text></strong>
					<s:text name="EffectuerDemande.modal.label.error"></s:text>
				</div>
				<div id="modal_error_date" class="alert alert-error hidden">
					<strong><s:text
							name="EffectuerDemande.modal.label.error.date.strong"></s:text></strong>
					<s:text name="EffectuerDemande.modal.label.error.date"></s:text>
				</div>
				<div id="modal_error_liste" class="alert alert-error hidden">
					<strong><s:text
							name="EffectuerDemande.modal.label.error.liste.strong"></s:text></strong>
					<s:text name="EffectuerDemande.modal.label.error.liste"></s:text>
				</div>
				<img id="imgloading" class="hidden"
					src="<s:url value='/media/images/wait.gif'></s:url>" />
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">
					<s:text name="EffectuerDemande.modal.annuler"></s:text>
				</button>
				<button type="button" class="okay-button btn btn-primary">
					<s:text name="EffectuerDemande.modal.valider"></s:text>
				</button>
			</div>
		</div>
	</div>
</div>

<!-- fin du modal -->




<content tag="javascriptPage"> <script
	src="<s:url value='/js/appli/effectuerDemande.js'/>"
	type="text/javascript"></script> </content>

<span class="hidden" id="url_img_label"><s:url
		value="/media/images/aide.png"></s:url></span>
<span class="hidden" id="url_img_datepicker"><s:url
		value="/media/images/calendar.png"></s:url></span>

<span class="hidden" id="properties_error_typeDemande"><s:text
		name="EffectuerDemande.error.typeDemande"></s:text></span>
<span class="hidden" id="properties_error_categorieDemande"><s:text
		name="EffectuerDemande.error.categorie"></s:text></span>
<span class="hidden" id="properties_error_sousCategorieDemande"><s:text
		name="EffectuerDemande.error.sousCategorie"></s:text></span>
<span class="hidden" id="properties_error_nomDemande"><s:text
		name="EffectuerDemande.error.nom"></s:text></span>
<span class="hidden" id="properties_error_titreDemande"><s:text
		name="EffectuerDemande.error.titre"></s:text></span>
<span class="hidden" id="properties_error_doublon_titreDemande"><s:text
		name="EffectuerDemande.error.doublon.titre"></s:text></span>
<span class="hidden" id="properties_error_referenceDemande"><s:text
		name="EffectuerDemande.error.reference"></s:text></span>
<span class="hidden" id="properties_error_commentaireDemande"><s:text
		name="EffectuerDemande.error.commentaire"></s:text></span>
<span class="hidden" id="properties_error_select"><s:text
		name="EffectuerDemande.error.select"></s:text></span>
<span class="hidden" id="properties_error_date"><s:text
		name="EffectuerDemande.error.date"></s:text></span>
<span class="hidden" id="properties_error_input"><s:text
		name="EffectuerDemande.error.input"></s:text></span>
<span class="hidden" id="properties_error_input_liste"><s:text
		name="EffectuerDemande.error.input.liste"></s:text></span>
<span class="hidden" id="properties_error_file"><s:text
		name="EffectuerDemande.error.file"></s:text></span>
<span class="hidden" id="properties_warning_num"><s:text
		name="EffectuerDemande.warning.num"></s:text></span>
<span class="hidden" id="properties_warning_parametres"><s:text
		name="EffectuerDemande.warning.parametres"></s:text></span>
<span class="hidden" id="properties_traitement"><s:text
		name="EffectuerDemande.traitement"></s:text></span>
<span class="hidden" id="properties_error_date_format"><s:text
		name="EffectuerDemande.error.date.format"></s:text></span>